package com.scgl.process.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.scgl.process.mapper.ScglPenMapper;
import com.scgl.process.domain.ScglPen;
import com.scgl.process.service.IScglPenService;

/**
 * 报工记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-01
 */
@Service
public class ScglPenServiceImpl implements IScglPenService 
{
    @Autowired
    private ScglPenMapper scglPenMapper;

    /**
     * 查询报工记录
     * 
     * @param serial 报工记录主键
     * @return 报工记录
     */
    @Override
    public ScglPen selectScglPenBySerial(Long serial)
    {
        return scglPenMapper.selectScglPenBySerial(serial);
    }

    /**
     * 查询报工记录列表
     * 
     * @param scglPen 报工记录
     * @return 报工记录
     */
    @Override
    public List<ScglPen> selectScglPenList(ScglPen scglPen)
    {
        return scglPenMapper.selectScglPenList(scglPen);
    }

    /**
     * 新增报工记录
     * 
     * @param scglPen 报工记录
     * @return 结果
     */
    @Override
    public int insertScglPen(ScglPen scglPen)
    {
        return scglPenMapper.insertScglPen(scglPen);
    }

    /**
     * 修改报工记录
     * 
     * @param scglPen 报工记录
     * @return 结果
     */
    @Override
    public int updateScglPen(ScglPen scglPen)
    {
        return scglPenMapper.updateScglPen(scglPen);
    }

    /**
     * 批量删除报工记录
     * 
     * @param serials 需要删除的报工记录主键
     * @return 结果
     */
    @Override
    public int deleteScglPenBySerials(Long[] serials)
    {
        return scglPenMapper.deleteScglPenBySerials(serials);
    }

    /**
     * 删除报工记录信息
     * 
     * @param serial 报工记录主键
     * @return 结果
     */
    @Override
    public int deleteScglPenBySerial(Long serial)
    {
        return scglPenMapper.deleteScglPenBySerial(serial);
    }
}
